<div class="row">
    <div class="col-sm-6">
        <div class="form-group" style="display: flex;align-items: center;">
            <span>启用库存:</span>
            <a style="cursor:pointer;margin-left:20px;" data-url="goods/lihua_goods/enablestock/ids/{$goods_id}" id="enable-stock">
                <i class="fa fa-toggle-on {if $enable_stock==1}text-success{else}fa-rotate-180 text-gray{/if} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="col-sm-6">
        <div class="input-group input-group-sm">
            <input id="multi-num" type="number" class="form-control" placeholder="请输入库存数量">
            <span class="input-group-btn">
                <button id="multi-set" type="button" class="btn btn-info btn-flat">批量设置</button>
            </span>
        </div>
    </div>
</div>
<div class="row">
    <div class="box no-border no-shadow">
        <div class="box-body table-responsive">
            <table class="table table-bordered table-striped">
                <thead>
                    <tr>
                        <th style="width: 50%;">门店</th>
                        <th style="width: 50%;">库存</th>
                    </tr>
                </thead>
                <tbody>
                {foreach name="list" item="v"}
                <tr>
                    <td style="font-size:14px;font-weight:bold;">{$v.name}</td>
                    <td><input id="store_{$v.id}" data-id="{$v.id}" data-stock_id="{$v.stock_id}" name="stock" type="number" value="{$v.num}" class="form-control input-sm" placeholder="启用库存后，必须填写"></td>
                </tr>
                {/foreach}
                </tbody>
            </table>
        </div>
    </div>
</div>

<div class="layer-footer">
    <div class="col-xs-12 text-center">
        <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">关闭</button>
    </div>
</div>
